package com.ourteam.product.model.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 IRKT 2017
 * Auto Generate Date : 2017-11-17 11:00:49
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductModelObject implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long packageId;

    /**
     * Attribute packageId Be Seted Falg
     */
    private boolean packageIdSetted = false;

    /**
    * Attribute packageId is Null Falg
    */
    private boolean packageIdNull = false;
    private String objectCode;

    /**
     * Attribute objectCode Be Seted Falg
     */
    private boolean objectCodeSetted = false;

    /**
    * Attribute objectCode is Null Falg
    */
    private boolean objectCodeNull = false;
    private String objectName;

    /**
     * Attribute objectName Be Seted Falg
     */
    private boolean objectNameSetted = false;

    /**
    * Attribute objectName is Null Falg
    */
    private boolean objectNameNull = false;
    private String objectType;

    /**
     * Attribute objectType Be Seted Falg
     */
    private boolean objectTypeSetted = false;

    /**
    * Attribute objectType is Null Falg
    */
    private boolean objectTypeNull = false;
    private String isGenerate;

    /**
     * Attribute isGenerate Be Seted Falg
     */
    private boolean isGenerateSetted = false;

    /**
    * Attribute isGenerate is Null Falg
    */
    private boolean isGenerateNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private long submitterId;

    /**
     * Attribute submitterId Be Seted Falg
     */
    private boolean submitterIdSetted = false;

    /**
    * Attribute submitterId is Null Falg
    */
    private boolean submitterIdNull = false;
    private String creatorName;

    /**
     * Attribute creatorName Be Seted Falg
     */
    private boolean creatorNameSetted = false;

    /**
    * Attribute creatorName is Null Falg
    */
    private boolean creatorNameNull = false;
    private java.util.Date createTime;

    /**
     * Attribute createTime Be Seted Falg
     */
    private boolean createTimeSetted = false;

    /**
    * Attribute createTime is Null Falg
    */
    private boolean createTimeNull = false;
    private String lastModifierName;

    /**
     * Attribute lastModifierName Be Seted Falg
     */
    private boolean lastModifierNameSetted = false;

    /**
    * Attribute lastModifierName is Null Falg
    */
    private boolean lastModifierNameNull = false;
    private java.util.Date lastModifyTime;

    /**
     * Attribute lastModifyTime Be Seted Falg
     */
    private boolean lastModifyTimeSetted = false;

    /**
    * Attribute lastModifyTime is Null Falg
    */
    private boolean lastModifyTimeNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private String packageName;

    /**
     * Attribute packageName Be Seted Falg
     */
    private boolean packageNameSetted = false;

    /**
    * Attribute packageName is Null Falg
    */
    private boolean packageNameNull = false;
    private String domainName;

    /**
     * Attribute domainName Be Seted Falg
     */
    private boolean domainNameSetted = false;

    /**
    * Attribute domainName is Null Falg
    */
    private boolean domainNameNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;

    public ProductModelObject() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get packageId
         *
         * @return long
         */
    final public long getPackageId() {
        return packageId;
    }

    /**
     * Set packageId
     *
     * @param long
     */
    final public void setPackageId(long packageId) {
        this.packageId = packageId;

        this.packageIdSetted = true;

        this.setPackageIdNull(false);
    }

    /**
     * Get packageId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPackageIdSetted() {
        return this.packageIdSetted;
    }

    /**
     * Set packageId Null
     *
     */
    final public void setPackageIdNull() {
        this.packageIdNull = true;
    }

    final public void setPackageIdNull(boolean aNullFlag) {
        this.packageIdNull = aNullFlag;
    }

    final public boolean isPackageIdNull() {
        return this.packageIdNull;
    }

    /**
         * Get objectCode
         *
         * @return String
         */
    final public String getObjectCode() {
        if (isObjectCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(objectCode);
        }
    }

    /**
     * Set objectCode
     *
     * @param String
     */
    final public void setObjectCode(String objectCode) {
        this.objectCode = StringUtils.trim(objectCode);

        this.objectCodeSetted = true;

        this.setObjectCodeNull(this.objectCode == null);
    }

    /**
     * Get objectCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectCodeSetted() {
        return this.objectCodeSetted;
    }

    /**
     * Set objectCode Null
     *
     */
    final public void setObjectCodeNull() {
        this.objectCodeNull = true;
    }

    final public void setObjectCodeNull(boolean aNullFlag) {
        this.objectCodeNull = aNullFlag;
    }

    final public boolean isObjectCodeNull() {
        return this.objectCodeNull;
    }

    /**
         * Get objectName
         *
         * @return String
         */
    final public String getObjectName() {
        if (isObjectNameNull()) {
            return null;
        } else {
            return StringUtils.trim(objectName);
        }
    }

    /**
     * Set objectName
     *
     * @param String
     */
    final public void setObjectName(String objectName) {
        this.objectName = StringUtils.trim(objectName);

        this.objectNameSetted = true;

        this.setObjectNameNull(this.objectName == null);
    }

    /**
     * Get objectName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectNameSetted() {
        return this.objectNameSetted;
    }

    /**
     * Set objectName Null
     *
     */
    final public void setObjectNameNull() {
        this.objectNameNull = true;
    }

    final public void setObjectNameNull(boolean aNullFlag) {
        this.objectNameNull = aNullFlag;
    }

    final public boolean isObjectNameNull() {
        return this.objectNameNull;
    }

    /**
         * Get objectType
         *
         * @return String
         */
    final public String getObjectType() {
        if (isObjectTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(objectType);
        }
    }

    /**
     * Set objectType
     *
     * @param String
     */
    final public void setObjectType(String objectType) {
        this.objectType = StringUtils.trim(objectType);

        this.objectTypeSetted = true;

        this.setObjectTypeNull(this.objectType == null);
    }

    /**
     * Get objectType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isObjectTypeSetted() {
        return this.objectTypeSetted;
    }

    /**
     * Set objectType Null
     *
     */
    final public void setObjectTypeNull() {
        this.objectTypeNull = true;
    }

    final public void setObjectTypeNull(boolean aNullFlag) {
        this.objectTypeNull = aNullFlag;
    }

    final public boolean isObjectTypeNull() {
        return this.objectTypeNull;
    }

    /**
         * Get isGenerate
         *
         * @return String
         */
    final public String getIsGenerate() {
        if (isIsGenerateNull()) {
            return null;
        } else {
            return StringUtils.trim(isGenerate);
        }
    }

    /**
     * Set isGenerate
     *
     * @param String
     */
    final public void setIsGenerate(String isGenerate) {
        this.isGenerate = StringUtils.trim(isGenerate);

        this.isGenerateSetted = true;

        this.setIsGenerateNull(this.isGenerate == null);
    }

    /**
     * Get isGenerate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIsGenerateSetted() {
        return this.isGenerateSetted;
    }

    /**
     * Set isGenerate Null
     *
     */
    final public void setIsGenerateNull() {
        this.isGenerateNull = true;
    }

    final public void setIsGenerateNull(boolean aNullFlag) {
        this.isGenerateNull = aNullFlag;
    }

    final public boolean isIsGenerateNull() {
        return this.isGenerateNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get submitterId
         *
         * @return long
         */
    final public long getSubmitterId() {
        return submitterId;
    }

    /**
     * Set submitterId
     *
     * @param long
     */
    final public void setSubmitterId(long submitterId) {
        this.submitterId = submitterId;

        this.submitterIdSetted = true;

        this.setSubmitterIdNull(false);
    }

    /**
     * Get submitterId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSubmitterIdSetted() {
        return this.submitterIdSetted;
    }

    /**
     * Set submitterId Null
     *
     */
    final public void setSubmitterIdNull() {
        this.submitterIdNull = true;
    }

    final public void setSubmitterIdNull(boolean aNullFlag) {
        this.submitterIdNull = aNullFlag;
    }

    final public boolean isSubmitterIdNull() {
        return this.submitterIdNull;
    }

    /**
         * Get creatorName
         *
         * @return String
         */
    final public String getCreatorName() {
        if (isCreatorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(creatorName);
        }
    }

    /**
     * Set creatorName
     *
     * @param String
     */
    final public void setCreatorName(String creatorName) {
        this.creatorName = StringUtils.trim(creatorName);

        this.creatorNameSetted = true;

        this.setCreatorNameNull(this.creatorName == null);
    }

    /**
     * Get creatorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreatorNameSetted() {
        return this.creatorNameSetted;
    }

    /**
     * Set creatorName Null
     *
     */
    final public void setCreatorNameNull() {
        this.creatorNameNull = true;
    }

    final public void setCreatorNameNull(boolean aNullFlag) {
        this.creatorNameNull = aNullFlag;
    }

    final public boolean isCreatorNameNull() {
        return this.creatorNameNull;
    }

    /**
         * Get createTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getCreateTime() {
        return createTime;
    }

    /**
     * Set createTime
     *
     * @param java.util.Date
     */
    final public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;

        this.createTimeSetted = true;

        this.setCreateTimeNull(this.createTime == null);
    }

    /**
     * Get createTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreateTimeSetted() {
        return this.createTimeSetted;
    }

    /**
     * Set createTime Null
     *
     */
    final public void setCreateTimeNull() {
        this.createTimeNull = true;
    }

    final public void setCreateTimeNull(boolean aNullFlag) {
        this.createTimeNull = aNullFlag;
    }

    final public boolean isCreateTimeNull() {
        return this.createTimeNull;
    }

    /**
         * Get lastModifierName
         *
         * @return String
         */
    final public String getLastModifierName() {
        if (isLastModifierNameNull()) {
            return null;
        } else {
            return StringUtils.trim(lastModifierName);
        }
    }

    /**
     * Set lastModifierName
     *
     * @param String
     */
    final public void setLastModifierName(String lastModifierName) {
        this.lastModifierName = StringUtils.trim(lastModifierName);

        this.lastModifierNameSetted = true;

        this.setLastModifierNameNull(this.lastModifierName == null);
    }

    /**
     * Get lastModifierName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifierNameSetted() {
        return this.lastModifierNameSetted;
    }

    /**
     * Set lastModifierName Null
     *
     */
    final public void setLastModifierNameNull() {
        this.lastModifierNameNull = true;
    }

    final public void setLastModifierNameNull(boolean aNullFlag) {
        this.lastModifierNameNull = aNullFlag;
    }

    final public boolean isLastModifierNameNull() {
        return this.lastModifierNameNull;
    }

    /**
         * Get lastModifyTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastModifyTime() {
        return lastModifyTime;
    }

    /**
     * Set lastModifyTime
     *
     * @param java.util.Date
     */
    final public void setLastModifyTime(java.util.Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;

        this.lastModifyTimeSetted = true;

        this.setLastModifyTimeNull(this.lastModifyTime == null);
    }

    /**
     * Get lastModifyTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastModifyTimeSetted() {
        return this.lastModifyTimeSetted;
    }

    /**
     * Set lastModifyTime Null
     *
     */
    final public void setLastModifyTimeNull() {
        this.lastModifyTimeNull = true;
    }

    final public void setLastModifyTimeNull(boolean aNullFlag) {
        this.lastModifyTimeNull = aNullFlag;
    }

    final public boolean isLastModifyTimeNull() {
        return this.lastModifyTimeNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get packageName
         *
         * @return String
         */
    final public String getPackageName() {
        if (isPackageNameNull()) {
            return null;
        } else {
            return StringUtils.trim(packageName);
        }
    }

    /**
     * Set packageName
     *
     * @param String
     */
    final public void setPackageName(String packageName) {
        this.packageName = StringUtils.trim(packageName);

        this.packageNameSetted = true;

        this.setPackageNameNull(this.packageName == null);
    }

    /**
     * Get packageName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPackageNameSetted() {
        return this.packageNameSetted;
    }

    /**
     * Set packageName Null
     *
     */
    final public void setPackageNameNull() {
        this.packageNameNull = true;
    }

    final public void setPackageNameNull(boolean aNullFlag) {
        this.packageNameNull = aNullFlag;
    }

    final public boolean isPackageNameNull() {
        return this.packageNameNull;
    }

    /**
         * Get domainName
         *
         * @return String
         */
    final public String getDomainName() {
        if (isDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(domainName);
        }
    }

    /**
     * Set domainName
     *
     * @param String
     */
    final public void setDomainName(String domainName) {
        this.domainName = StringUtils.trim(domainName);

        this.domainNameSetted = true;

        this.setDomainNameNull(this.domainName == null);
    }

    /**
     * Get domainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainNameSetted() {
        return this.domainNameSetted;
    }

    /**
     * Set domainName Null
     *
     */
    final public void setDomainNameNull() {
        this.domainNameNull = true;
    }

    final public void setDomainNameNull(boolean aNullFlag) {
        this.domainNameNull = aNullFlag;
    }

    final public boolean isDomainNameNull() {
        return this.domainNameNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductModelObject) == false) {
            return false;
        }

        ProductModelObject other = (ProductModelObject) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("packageId=");
        buffer.append(this.packageId);

        buffer.append("objectCode=");
        buffer.append(this.objectCode);

        buffer.append("objectName=");
        buffer.append(this.objectName);

        buffer.append("objectType=");
        buffer.append(this.objectType);

        buffer.append("isGenerate=");
        buffer.append(this.isGenerate);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("packageName=");
        buffer.append(this.packageName);

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("domainName=");
        buffer.append(this.domainName);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("submitterId=");
        buffer.append(this.submitterId);

        buffer.append("creatorName=");
        buffer.append(this.creatorName);

        buffer.append("createTime=");
        buffer.append(this.createTime);

        buffer.append("lastModifierName=");
        buffer.append(this.lastModifierName);

        buffer.append("lastModifyTime=");
        buffer.append(this.lastModifyTime);

        buffer.append("]");

        return buffer.toString();
    }
}
